﻿Namespace Model

    Public Class Department
        Implements IEquatable(Of Department)

        Public Property DepartmentId As Integer
        Public Property DepartmentName As String

        Overloads Function Equals(ByVal otherDepartment As Department) As Boolean _
            Implements IEquatable(Of Department).Equals

            If Me.DepartmentId = otherDepartment.DepartmentId And Me.DepartmentName = otherDepartment.DepartmentName Then
                Return True
            End If

            Return False
        End Function

    End Class

End Namespace
